package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 每周内的股票数据信息
 */

@ApiModel(description = "每周内的股票数据信息")
@Data
public class WeekklineBeforeDomain {

     @ApiModelProperty(value = "一周内平均价", position = 1)
     private BigDecimal avgPrice;       //一周内平均价
     @ApiModelProperty(value = "一周内最低价", position = 2)
     private BigDecimal minPrice;       //一周内最低价
     @ApiModelProperty(value = "一周内最高价", position = 4)
     private BigDecimal maxPrice;       //一周内最高价
    @ApiModelProperty(value = "一周内最大时间", position = 6)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime mxTime;
    @ApiModelProperty(value = "一周内最小时间", position = 7)//一周内最大时间
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime miTime;               //一周内最大时间
     @ApiModelProperty(value = "股票编码", position = 8)
     private String stockCode;          //股票编码
    @ApiModelProperty(value = "周数", position = 9)
    private String weeks;          //周数

}
